<?php

namespace api\web\controller;

use cmf\controller\RestBaseController;
use think\facade\Db;

class BannerController extends RestBaseController
{
    public function index()
    {
        $banner = Db::name('banner')->select();
        $this->success('轮播', $banner);
    }
}